const system = require("os");

class Utils {
    static _instance = null;
    static getInstance() {
        if (!Utils._instance) Utils._instance = new Utils();
        return Utils._instance;
    }

    getDevicesInterface() {
        // 仅支持无限网卡，本地连接
        const interface_system = system.networkInterfaces();
        const keys = Object.keys(interface_system).filter((item) =>
            /WLAN/i.test(item)
        );
    }
}

module.exports = Utils.getInstance();
